<%-- 
    Document   : editCorporate
    Created on : Jan 13, 2014, 7:05:18 PM
    Author     : santosh
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="../common/script.jsp" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <%@include file="../common/title.jsp" %>
        <script type="text/javascript">
            var rules=new Array();
            rules[0]='paymentTypeName|required|Enter Corporate Name';
        </script>
    </head>
    <body onload="yav.init('form1', rules,'inline');">
        <%@include file="../common/header.jsp" %>
        <%@include file="../common/menu.jsp" %>
        <div class="in_02">
            <%@include file="../common/message.jsp" %>
            <form:form id="form1" name="form1" commandName="corporate" action="editCorporate.htm" method="POST">
                <fieldset>
                    <legend><spring:message code="title.editCorporate"/></legend>
                    <table class="formTable">
                        <tr><form:hidden path="paymentTypeId"/>
                            <td>Corporate Name<br/><form:input path="paymentTypeName" cssClass="UserInputLarge"/><br/><span id="errorsDiv_paymentTypeName"></span></td>
                            <td><spring:message code="active"/>:<br/><spring:message code="yes"/> <form:radiobutton path="active" value="true"/>&nbsp;&nbsp;&nbsp;<spring:message code="no"/> <form:radiobutton path="active" value="false"/></td>
                        </tr>
                        <tr>
                            <td><input type="button" name="btnCancel" value="<spring:message code="button.Cancel"/>" onclick="location.href='../corporate/listCorporate.htm'" /></td>
                            <td><input type="submit" name="btnSubmit" value="<spring:message code="button.Edit"/>" onclick="return yav.performCheck('form1', rules, 'inline');"/></td>
                        </tr>
                        <spring:hasBindErrors name="corporate">
                            <div class="error">
                                <form:errors path="*"/>
                            </div>
                        </spring:hasBindErrors>
                    </table>
                </fieldset>
            </form:form>
        </div>
    </body>
</html>
